import Vue from "vue";
import VueRouter from "vue-router";

import MySport from "@/views/MySport.vue";
import MyZhuye from "@/views/MyZhuye.vue";
import MyGuonei from "@/views/MyGuonei.vue";
import MyGuowai from "@/views/MyGuowai.vue";

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    // { path: "/", redirect: "/myfrist" },
    {
      path: "/mysport",
      component: MySport,
      children: [
        {
          path: "myzhuye",
          component: MyZhuye,
        },
        {
          path: "myguonei",
          component: MyGuonei,
        },
        {
          path: "myguowai",
          component: MyGuowai,
        },
      ],
    },
  ],
});

export default router;
